package com.Register.mapper;

import com.Register.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名查询用户信息
     */
    @Select("select * from user where username = #{username}")
    User selectByUsername(@Param("username") String username);
}
